package org.smartboot.compare;

import java.lang.reflect.Field;

/**
 * @author qinluo
 * @date 2024-08-19 21:18:19
 * @since 1.1.3
 */
public class ReflectFieldReader implements FieldReader {

    private static final ReflectFieldReader INST = new ReflectFieldReader();

    private ReflectFieldReader() {

    }

    public static ReflectFieldReader getInstance() {
        return INST;
    }

    @Override
    public Object read(Field f, Object target) throws Throwable {
        return f.get(target);
    }
}
